package SharedCloud
{
	import flash.utils.getQualifiedClassName;
	
	[Bindable]
	[RemoteClass(alias="SharedCloud::Ref")]
	public class Ref
	{
		public var property:String;
		public var clientID:int;
		public var localID:int;
		public var index:Number;
		
		public static function create(obj:SyncedObject, prop:String, index:int=0):Ref
		{
			var ref:Ref = new Ref();
			ref.clientID = obj.clientID;
			ref.localID = obj.localID;
			ref.property = prop;
			ref.index = index;
			return ref;
		}
	}
}